90403: xfi:fact-dimension-s-equal2

Documentation

Definition treeview of this testcase: P1, P2, and P3 are primary items all inheriting the hc1 all hypercube hc1 is an all and has two dimensions: explDim1 is an explicit dimension with a domain member domain1, which has children member1 and member2 typeDim1 is a typed dimension with a complex typed element dimVal which has: attributes a1 (string), a2 (decimal), and a3 (double) any contents such as strVal (string), decVal (decimal), and dblVal (double), each of which also have the previously-noted three attributes (additional hypercube alternatives are provided in separate extended link roles to allow valid missing dimensions for these tests)

Owners

Name Affiliation Email Start End
Herm Fischer UBMatrix / Mark V Systems fischer@markv.com 05-02-2008 at 22:30:00
Geoff Shuetrim Galexy geoff@galexy.net 11-09-2008 at 10:10:00
Harald Schmitt ABZ Reporting harald.schmitt@abz-reporting.com 26-09-2018 at 00:00:00

References

function definition

Test Case Variations


V-01 Explicit dimensions are equal, they have same member

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-01a Same as V-01 but scenario

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-01b Same as V-01 but one segment and one scenario dimension

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-02 Typed dimensions are equal, they have same composition and values.

Documentation

Note that id attributes differ between left and right arguments, and other attributes are in different sequences. Decimal and double attributes and text values must be compared using respective typed comparison operators.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-02a Same as V-02 but scenario

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-02b Same as V-02 but one each segment and scenario of same dimension.

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-03 Typed dimensions are equal, but out of left' order

Documentation

Reuse of variation V-02, but right has typed sub-elements in different order, so result is false.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-04 Explicit dimension of V-01 right is different from that of left

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-04a Same as V-04 but scenario

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-04b Same of V-04 but one each segment and scenario dimension

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-05 Explicit dimension of V-01 right is missing from that of left

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-06 Typed dimension of V-01 right is missing from that of left

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-07 Explicit dimension of V-05 left also missing, since both missing, result is true

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-08 Typed dimension of V-06 is missing from both left and right so result is true

Documentation

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-09 Typed dimension value s-equal2 test involving simple text values

Documentation

The two dimension values are d-equal. The content model for the dimension is an element with simple content with xs:string type. The string content of the dimension values do not include any white space.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-10 Typed dimension value s-equal2 test involving simple text values with different amounts of internal whitespace.

Documentation

The two dimension values are NOT d-equal. The content model for the dimension is an element with simple content with xs:string type. The string content of the dimension values includes different internal white space but no leading or trailing white space.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-11 Typed dimension value s-equal2 test involving simple text values with identical leading white space.

Documentation

The two dimension values are d-equal. The content model for the dimension is an element with simple content with xs:string type. The string content of the dimension values includes identical leading white space.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-12 Typed dimension value s-equal2 test involving simple text values with different leading white space.

Documentation

The two dimension values are NOT d-equal. The content model for the dimension is an element with simple content with xs:string type. The string content of the dimension values includes different leading white space.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-13 Typed dimension value s-equal2 test involving lexically identical decimal values.

Documentation

The two dimension values are d-equal. The content model for the dimension is an element with simple content with xs:decimal type. The lexical representation of the dimension values is identical.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-14 Typed dimension value s-equal2 test involving lexically different but equal value decimal values.

Documentation

The two dimension values are d-equal. The content model for the dimension is an element with simple content with xs:decimal type. The lexical representation of one dimension value has extra trailing zeros.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-15 Typed dimension value s-equal2 test involving lexically identical Boolean values.

Documentation

The two dimension values are d-equal. The content model for the dimension is an element with simple content with xs:boolean type. The lexical representation of the dimension values is identical.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-16 Typed dimension value s-equal2 test involving lexically different but equal Boolean values.

Documentation

The two dimension values are d-equal. The content model for the dimension is an element with simple content with xs:boolean type. The lexical representation of one dimension value is 'true' and the other is '1'.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-17 Typed dimension value s-equal2 test involving lexically identical but equal QName values.

Documentation

The two dimension values are d-equal. The content model for the dimension is an element with simple content with xs:QName type. The lexical representation of the two QName values is identical.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-18 Typed dimension value s-equal2 test involving lexically different but equal QName values.

Documentation

The two dimension values are d-equal. The content model for the dimension is an element with simple content with xs:QName type. The lexical representation of the two QName values differs with one using the default namespace prefix and the other using 'my' as the namespace prefix. The two dimension values are d-equal because the Dimensions 1.0 specification specifies XPath 2.0 in its definition of x-equality of XML objects.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-19 Typed dimension value s-equal2 test involving lexically identical but not equal QName values.

Documentation

The two dimension values are not d-equal. The content model for the dimension is an element with simple content with xs:QName type. The lexical representation of the two QName values is the same but the 'my' namespace prefix is mapped to different namespaces for each of the two contexts. The two dimension values are not d-equal because the Dimensions 1.0 specification specifies XPath 2.0 in its definition of x-equality of XML objects.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-20 Typed dimension value s-equal2 test involving different but equal float values.

Documentation

The two dimension values are d-equal because they are to be treated as numbers. The test is complicated by the referencing of the relevant data type from within the typed dimension type declaration.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-21 Typed dimension value s-equal2 test involving a comparison of NaN values.

Documentation

The two dimension values are NOT d-equal because a NaN does not equal a NaN. The test is complicated by the referencing of the relevant data type from within the typed dimension type declaration.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-22 Typed dimension value s-equal2 test involving a comparison of two xs:token values.

Documentation

The two dimension values are NOT d-equal because they are to be treated as text and are not lexically identical. The test case is complicated because the information about the data type to use for the equality test is tucked away in a separate schema that is imported by the schema defining the data type of the typed dimension.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq false()

V-23 Typed dimension value s-equal2 test involving a comparison of two xs:integer values.

Documentation

The two dimension values are s-equal because they are NOT to be treated as text and the lexical differences do not constitute a semantic difference.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-24 Typed dimension value s-equal2 test involving a comparison of two xs:integer values.

Documentation

The two dimension values are s-equal because they are NOT to be treated as text and the lexical differences do not imply semantic differences.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-25 Typed dimension value s-equal2 test involving a comparison of two xs:time values.

Documentation

The two dimension values are s-equal2 because they are to be treated as XML Schema typed values and are the lexically difference does not matter.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-26 Typed dimension value s-equal2 test involving a comparison of two xs:dateTime values.

Documentation

The two dimension values are s-equal2 because they are to be treated as XML Schema typed values and are the lexically difference does not matter.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

V-27 Typed dimension value s-equal2 test involving a comparison of two xs:duration values.

Documentation

The two dimension values are s-equal2 because they are to be treated as XML Schema typed values and are the lexically difference does not matter.

Inputs

Outputs

  • Result test: $result instance of xs:boolean and count( $result ) eq 1 and $result eq true()

Revisions

Name On Details
Herm Fischer 05-02-2008 at 22:30:00 Created the test case.
Geoff Shuetrim 11-09-2008 at 10:10:00 Added extra test case variations to cover different additional types and to get a more complete set of tests covering how the XML Schema data types are determined.
Geoff Shuetrim 25-09-2008 at 13:00:00 Added extra test case variations to cover integers and times.
Geoff Shuetrim 14-11-2008 at 13:00:00 Corrected the integer-related test-case variations to reflect the fact that integers are derived from decimals in the XML Schema datatypes system
Herm Fischer 11-09-2010 at 00:00:00 Corrected test case instances removing nested IDs in context typed dimension values per bug 378.
Harald Schmitt 26-09-2018 at 00:00:00 Corrected test case instances for typed dimension dateTime and duration type.